package com.supereal.bigfile.dataobject;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

/**
 * @Author: DougZ
 * @Date: 2020/11/18 10:15
 * @Description:
 */
@Mapper
public interface TestConverter {
    TestConverter INSTANCE = Mappers.getMapper(TestConverter.class);
    @Mapping(source = "a1",target = "b1")
    @Mapping(source = "a2",target = "b2")
    @Mapping(source = "a3",target = "b3")
    B a2b(A b);
}
